package com.sist.ocs.config;

import org.springframework.amqp.core.DirectExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName ExchangeConfig
 * @Description TODO
 * @Author: xmk
 * @Date: 2018/10/25 10:07
 * @Version: 1.0
 */
@Configuration
public class ExchangeConfig {

    @Bean
    public DirectExchange directExchange() {
        return new DirectExchange(RabbitMqConfig.EXCHANGE);
    }
}
